﻿using System.Collections.Generic;
using QuizzMe.QuizzServiceRef;

namespace QuizzMe.Model
{
    /// <summary>
    /// Wrapper of user to store more data
    /// </summary>
    public class ExtendedUser
    {
        /// <summary>
        /// Corresponding User
        /// </summary>
        public User User
        {
            get; set;
        }

        /// <summary>
        /// User avatar (short picture)
        /// </summary>
        public string Avatar
        {
            get; set;
        }

        /// <summary>
        /// User rank
        /// </summary>
        public int Rank
        {
            get; set;
        }

        public ExtendedUser(User user, IDictionary<string, object> values)
        {
            User = user;
            Avatar = (string) values["pic"];
            Rank = 0;
        }
    }
}
